home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: [Q] Can I link Assembler procedures with C++ Classes??
- Date: 21 Feb 1996 21:13:30 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4gg1tq$sl6@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe11.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Feb 20, 1996 23:50:30 in article <[Q] Can I link Assembler procedures
- with C++ Classes??>, 'aschen@ix.netcom.com (Sean Aschen)' wrote:
-
-
- >I've got a nice Sprite class which I would like to speed up. I know
- >how to link an assembler procedure with plain C, but not with C++. I
- >want to have a class with member functions in assembler! Is this
- >possible? What about accessing data members in the class?
- >Should I just suck it up and use the Inline Assembler (which
- >sucks..)??
- >I have Turbo C++ 3.0 and TASM 4.0
- >
- The procedure is almost the same. Just wrap your assembler
- routine declarations with extern "C", add an underscore prefix
- to the names in .asm files, and use the /mx option to retain
- case-sensitivity for your exported functions.
-
- --
- Pete Grant
- Kalevi, Inc.
- Software Engineering & development
-